<template>
  <title>购物车</title>
  <link type="text/css" rel="stylesheet" href="./assets/css/style.css">

  <div class="headerbox">
    <div class="header">
      <div class="headerL">
        <a @click="goback" ><img src="/assets/images/goback.png" /></a>
      </div>
      <div class="headerC">
        <p>购物车</p>
      </div>
    </div>
  </div>

  <div class="gwcbox">
    <div class="gwclist">
      <!-- 商品 -->
      <div class="shop-cart-listbox1">
        <div class="index-goods">
          <span class="shop-cart-check2"><input type="checkbox" name="sub2" class="shopcart-input1 btn2"></span>
          <span class="index-goods-img"><img src="/assets/images/01.jpg"></span>
          <div class="index-goods-textbox">
            <span class="index-goods-text1">1SNP 燕窝补水面膜 10片/盒含燕窝精华 双倍补水保湿</span>
            <div class="index-goods-text2">￥<i class="priceJs">10.00</i></div>
            <div class="shop-cart-box3">
              <span class="shop-cart-subtract"></span>
              <input type="tel" size="4" value="1" id="tb_count" class="shop-cart-numer">
              <span class="shop-cart-add"></span>
            </div>
          </div>
        </div>
        <div class="index-goods">
          <span class="shop-cart-check2"><input type="checkbox" name="sub2" class="shopcart-input1 btn2"></span>
          <span class="index-goods-img"><img src="/assets/images/02.jpg"></span>
          <div class="index-goods-textbox">
            <span class="index-goods-text1">2SNP 燕窝补水面膜 10片/盒含燕窝精华 双倍补水保湿</span>
            <div class="index-goods-text2">￥<i class="priceJs">15.00</i></div>
            <div class="shop-cart-box3">
              <span class="shop-cart-subtract"></span>
              <input type="tel" size="4" value="1" id="tb_count" class="shop-cart-numer">
              <span class="shop-cart-add"></span>
            </div>
          </div>
        </div>
      </div>

      <!-- 合计 -->
      <div class="shop-cart-total">
        <label class="checkall">
          <span class="shop-cart-check1"><input type="checkbox" class="" id="ckAll"></span>
          全选
        </label>
        <span class="scart-total-text2">合计：￥</span>
        <span id="AllTotal" class="scart-total-text3">0.00</span>
        <a href="/indent-details.html" class="scart-total-text4">去结算<i id="selectedTotal"></i></a>
        <span class="delete hide"></span>
      </div>
    </div>
  </div>

  <!-- 购物车为空 -->
  <div class="gwcbox">
    <div class="gwckbox">
      <div class="T1"><img src="/assets/images/kgwc.png">
        <p>购物车还是空的</p>
      </div>
      <div class="T2">再忙也不能亏待自己啦，快去挑选好货吧~</div>
      <a href="list.html">逛一逛</a>
    </div>
  </div>
</template>


<script setup>
import { useRoute } from 'vue-router';

const { proxy } = getCurrentInstance()

//返回上个页面
const goback = () => proxy.$router.go(-1)

</script>